-- This file will start at boot SciTE
-- No need to fill it to its huge number of used scripts, because it complicates the editor, most of them are stored in separate files and loaded only when the corresponding menu item Tools.
-- Here (with dofile) loaded only scripts that handle the event editor.

----[[ COMMON ]]-------------------------------------------------------

-- Mounting a file with common functions that are used in many scenarios
dofile (props["SciteDefaultHome"].."\\tools\\COMMON.lua")

-- Supports recording and playback macros
dofile (props["SciteDefaultHome"].."\\tools\\macro_support.lua")

----[[ CODING ]]-------------------------------------------------

-- Win1251/DOS866 change encoding and display the current encoding in the status bar
dofile (props["SciteDefaultHome"].."\\tools\\CodePage.lua")

----[[ STATUS BAR ]]-----------------------------------

-- Display name of the current lexer in the status bar
dofile (props["SciteDefaultHome"].."\\tools\\lexer_name.lua")

----[[ FONTS ]]-------------------------------------------------------

-- Change the current font (Ctrl+F11)
dofile (props["SciteDefaultHome"].."\\tools\\FontChanger.lua")

-- If you change the font size (Ctrl + -), scaled and output to the printer font and indicator in the status bar
dofile (props["SciteDefaultHome"].."\\tools\\Zoom.lua")

----[[ SAVING ]]--------------------------------------------------

-- Saving settings SciTE, modified through the menu
dofile (props["SciteDefaultHome"].."\\tools\\save_settings.lua")

-- Automatic backups of edited files
dofile (props["SciteDefaultHome"].."\\tools\\auto_backup.lua")

-- Showing the modified save dialog when closing the current session SciTE
-- (if SciTEGlobal.properties settings are session.manager=1 and save.session.manager.on.quit=1)
dofile (props["SciteDefaultHome"].."\\tools\\SessionManager\\SessionManager.lua")

----[[ READ ONLY ]]-------------------------------------------------

-- Replacing the standard command "Read-Only"
-- Paint background tab is available for editing and displays the status in the status bar
dofile (props["SciteDefaultHome"].."\\tools\\ReadOnly.lua")

-- when you open ReadOnly, Hidden, System files will activate ReadOnly in SciTE
dofile (props["SciteDefaultHome"].."\\tools\\ROCheck.lua")

-- Support for save files RO
dofile (props["SciteDefaultHome"].."\\tools\\ROWrite.lua")

----[[ BRACKETS COMMENTS ]]-------------------------------

-- Auto-brackets
dofile (props["SciteDefaultHome"].."\\tools\\smartbraces.lua")

-- Auto-HTML tags
dofile (props["SciteDefaultHome"].."\\tools\\html_tags_autoclose.lua")

-- The universal comment and removing Comments (Ctrl + Q)
dofile (props["SciteDefaultHome"].."\\tools\\xComment.lua")
--~ dofile (props["SciteDefaultHome"].."\\tools\\smartcomment.lua")

----[[ AUTOMATION ]]-------------------------------------------

-- connection LuaInspect <http://lua-users.org/wiki/LuaInspect>
if props["luainspect.path"] ~= '' then dofile (props["SciteDefaultHome"].."\\tools\\LuaInspectInstall.lua") end

-- In the transition to the specified string, scrolls the text, keeping the position of the cursor on the screen
dofile (props["SciteDefaultHome"].."\\tools\\goto_line.lua")

-- Replaces standard command SciTE "File | New" (Ctrl + N). Creates a new buffer in the current directory with the extension of the current file
dofile (props["SciteDefaultHome"].."\\tools\\new_file.lua")

-- Replacing the standard command SciTE "Open selected file"
-- As well as an opportunity to open a file by double-clicking on its name while holding down Ctrl.
dofile (props["SciteDefaultHome"].."\\tools\\Open_Selected_Filename.lua")

-- Includes highlighting for HTML files with no extension, opened from the "view HTML-code" Internet Explorer
dofile (props["SciteDefaultHome"].."\\tools\\set_html.lua")

-- Restore cursor position, bookmarks and folding at the reopening of any file.
dofile (props["SciteDefaultHome"].."\\tools\\RestoreRecent.lua")

-- Folding for text files
dofile (props["SciteDefaultHome"].."\\tools\\FoldText.lua")

-- Autocomplete objects of their methods and properties
dofile (props["SciteDefaultHome"].."\\tools\\AutocompleteObject.lua")

-- List the transcripts (as Ctrl + B or automatically) for inexact matching abbreviations
dofile (props["SciteDefaultHome"].."\\tools\\abbrevlist.lua")

-- Bubble help (Ctrl + Shift + Space) for the current word
dofile (props["SciteDefaultHome"].."\\tools\\ShowCalltip.lua")

-- Auto backlight text that matches the current word or selection
dofile (props["SciteDefaultHome"].."\\tools\\highlighting_identical_text.lua")

-- Lights, copy, paste, delete, paired tags in HTML
dofile (props["SciteDefaultHome"].."\\tools\\paired_tags.lua")

-- Highlighting links in the text and open them in the browser when you click while holding the Ctrl
dofile (props["SciteDefaultHome"].."\\tools\\HighlightLinks.lua")

-- Adequate substitutes for the comment character ini, inf, reg and php files
dofile (props["SciteDefaultHome"].."\\tools\\ChangeCommentChar.lua")

----[[ Additional MENU ]]--------------------------------

-- When the command "Find in files ..." creating context menu item console - "Open files found"
dofile (props["SciteDefaultHome"].."\\tools\\OpenFindFiles.lua")

-- Creates a context menu tabs (tabs) submenu to SVN commands
dofile (props["SciteDefaultHome"].."\\tools\\svn_menu.lua")

----[[ Utilities AND TOOLS ]]-----------------------------

-- SideBar: Multi-functional sidebar
dofile (props["SciteDefaultHome"].."\\tools\\SideBar.lua")

-- Color Image Viewer: Preview color and images
dofile (props["SciteDefaultHome"].."\\tools\\CIViewer\\CIViewer.lua")

-- SciTE_HexEdit: A Self-Contained Primitive Hex Editor for SciTE
dofile (props["SciteDefaultHome"].."\\tools\\HexEdit\\SciTEHexEdit.lua")

-- SciTE Calculator
dofile (props["SciteDefaultHome"].."\\tools\\Calculator\\SciTECalculatorPD.lua")

-- Inserting special characters (©, ®, §, ±, ...) from the drop-down list (for HTML inserted their name)
dofile (props["SciteDefaultHome"].."\\tools\\InsertSpecialChar.lua")

----[[ Interface Settings ]]-----------------------------

-- Set the size of a tab in the console window
local tab_width = tonumber(props['output.tabsize'])
if tab_width ~= nil then
	scite.SendOutput(SCI_SETTABWIDTH, tab_width)
end

----[[ EXTERNAL LEXER ]]-----------------------------

-- Lexer for text files
dofile (props["SciteDefaultHome"].."\\languages\\text.lua")

------------------------------------------------------------------------------
